<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="NotasCreditoCabeceraCreateDlg" widgetVar="NotasCreditoCabeceraCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.CreateNotasCreditoCabeceraTitle}">

            <h:form id="NotasCreditoCabeceraCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{notasCreditoCabeceraController.selected != null}">

                        <p:outputLabel value="#{bundle.CreateNotasCreditoCabeceraLabel_notasCreditoCabeceraPK_nroFactura}" for="notasCreditoCabeceraPK_nroFactura" />
                        <p:inputText id="notasCreditoCabeceraPK_nroFactura" value="#{notasCreditoCabeceraController.selected.notasCreditoCabeceraPK.nroFactura}" title="#{bundle.CreateNotasCreditoCabeceraTitle_notasCreditoCabeceraPK_nroFactura}" required="true" requiredMessage="#{bundle.CreateNotasCreditoCabeceraRequiredMessage_notasCreditoCabeceraPK_nroFactura}"/>

                        <p:outputLabel value="#{bundle.CreateNotasCreditoCabeceraLabel_notasCreditoCabeceraPK_nroNota}" for="notasCreditoCabeceraPK_nroNota" />
                        <p:inputText id="notasCreditoCabeceraPK_nroNota" value="#{notasCreditoCabeceraController.selected.notasCreditoCabeceraPK.nroNota}" title="#{bundle.CreateNotasCreditoCabeceraTitle_notasCreditoCabeceraPK_nroNota}" required="true" requiredMessage="#{bundle.CreateNotasCreditoCabeceraRequiredMessage_notasCreditoCabeceraPK_nroNota}"/>

                        <p:outputLabel value="#{bundle.CreateNotasCreditoCabeceraLabel_fecha}" for="fecha" />
                        <p:calendar id="fecha" pattern="MM/dd/yyyy" value="#{notasCreditoCabeceraController.selected.fecha}" title="#{bundle.EditNotasCreditoCabeceraTitle_fecha}"  showOn="button"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{notasCreditoCabeceraController.saveNew}" value="#{bundle.Save}" update="display,:NotasCreditoCabeceraListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,NotasCreditoCabeceraCreateDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="NotasCreditoCabeceraCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
